import request from '@/utils/request'

// 获取合格证统计概览数据
export function getStatisticsOverview(params) {
  return request({
    url: '/nongjt/certificateStatistics/overview',
    method: 'get',
    params: params
  })
}

// 获取合格证开具数量统计（按月）
export function getMonthlyStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/monthly',
    method: 'get',
    params: params
  })
}

// 获取主要农产品数量统计
export function getProductStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/products',
    method: 'get',
    params: params
  })
}

// 获取街道/镇合格证打印数量统计
export function getStreetStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/streets',
    method: 'get',
    params: params
  })
}

// 获取主体合格证开具数量排名
export function getEntityStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/entities',
    method: 'get',
    params: params
  })
}

// 获取街道/镇用户数量统计
export function getStreetUserStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/streetUsers',
    method: 'get',
    params: params
  })
}

// 获取每日合格证开具实时数据
export function getDailyStatistics(params) {
  return request({
    url: '/nongjt/certificateStatistics/daily',
    method: 'get',
    params: params
  })
}
